﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpModelInterface.h"

namespace gcmp
{
    /// \brief 文件存储后缀名基类
    ///
    /// 用户可从此类派生，实现应用程序的默认后缀
    class GCMP_MODEL_INTERFACE_EXPORT IFileExtensions
    {
    public:
        virtual ~IFileExtensions();

        /// \brief 获取默认的文件存储后缀名（不区分项目和族）
        /// \return std::wstring 返回默认的文件存储后缀名
        virtual std::wstring GetDefaultFileExt() const = 0;

        /// \brief 获取默认的项目文件存储后缀名
        /// \return 返回默认的项目文件存储后缀名
        virtual std::wstring GetDefaultProjectFileExt() const = 0;

        /// \brief 获取默认的族文件存储后缀名
        /// \return 返回默认的族文件存储后缀名
        virtual std::wstring GetDefaultFamilyFileExt() const = 0;

        /// \brief 获取默认打开当前后缀名文件的命令
        /// \return 返回默认的当前文件类型打开命令
        virtual std::wstring GetDefaultOpenFileCommandId() const = 0;
    };
}

